home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / APW.ORCA.Cmds / Gregs.APW.Utils / Documentation / DeTab < prev    next >
Encoding:
Text File  |  1990-07-19  |  1.9 KB  |  49 lines  |  [TEXT/pdos]

  1. DeTab -- replace tab characters with spaces
  2.  
  3. Syntax      DeTab [file] <file >output
  4.  
  5. Description DeTab replaces tab characters (ASCII 9) in the input file with
  6.             runs of spaces.  The input file may be specified on the command
  7.             line and must be of type TXT or SRC. DeTab will alternately accept
  8.             standard input as the input file.  The converted file is sent to
  9.             standard output.
  10.  
  11.             The size of each tab field is determined by the file's language
  12.             stamp.  DeTab will use the tab definition line found in the SysTabs
  13.             file corresponding to the language number of the file.  If standard
  14.             input is used as the source file, a standard tab line with tab
  15.             positions every fourth character position will be used.
  16.  
  17.  
  18. Input       Standard input is read if no file is specified on the command
  19.             line.
  20.  
  21. Output      File characters are written to standard output.
  22.  
  23. Diagnostics Errors are written to diagnostic output (standard error output).
  24.  
  25. Status      DeTab may return the following status codes:
  26.  
  27.             0   No errors
  28.             1   Bad filetype for input source file
  29.             2   Unable to open file
  30.             -1  User abort
  31.  
  32. Options     none.
  33.  
  34. Examples    Change Derez.out Rez
  35.             DeTab Derez.out >mystuff.rez
  36.  
  37.             First, the file "Derez.out" has it's language stamp set to "Rez".
  38.             Next, DeTab is used to convert tab characters to runs of spaces,
  39.             using the tab definition line for the Rez language to determine the
  40.             tab stops (from the 4/SysTabs file).
  41.  
  42.  
  43.             DeRez myfile.stuff | DeTab >myfile.rez
  44.  
  45.             The resource decompiler is used to translate the resource fork of
  46.             the file "myfile.stuff", pipelining it's output to be the input to
  47.             the DeTab tool.  The final result of the processing will be placed
  48.             in the file "myfile.rez" as editable, Rez source code.
  49.